const router = {
  path: '/menu',
  meta: {},
  component: () => import('../components/Layout.vue'),
  children: [
    // 交易中心(暂无子菜单)
    // 会员中心
    {
      path: 'member/list',
      component: () => import('../views/member/List.vue'),
      meta: {
        title: '会员列表'
      }
    },
    {
      path: 'member/cashWithdrawal',
      component: () => import('../views/member/CashWithdrawal.vue'),
      meta: {
        title: '余额提现'
      }
    },
    {
      path: 'member/cashWithdrawal/detail',
      component: () => import('../views/member/CashWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '余额提现详情页'
      }
    },
    // 商户管理
    {
      path: 'merchant/list',
      component: () => import('../views/merchant/List.vue'),
      meta: {
        title: '商户列表'
      }
    }, {
      path: 'merchant/cashWithdrawal',
      component: () => import('../views/merchant/CashWithdrawal.vue'),
      meta: {
        title: '余额提现'
      }
    },
    {
      path: 'merchant/cashWithdrawal/detail',
      component: () => import('../views/merchant/CashWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '余额提现详情'
      }
    },
    {
      path: 'merchant/receiptList',
      component: () => import('../views/merchant/ReceiptList.vue'),
      meta: {
        title: '商户收款列表'
      }
    },
    // 服务商管理
    {
      path: 'provider/list',
      component: () => import('../views/provider/List.vue'),
      meta: {
        title: '服务商列表'
      }
    },
    {
      path: 'provider/list/details',
      component: () => import('../views/provider/providerDetail/providerDetail'),
      meta: {
        isHidden: 'hide'
      },
      children: [
        {
          path: 'index',
          component: () => import('../views/provider/providerDetail/subject'),
          meta: {
            title: '服务商列表  / 主体信息'
          }
        },
        {
          path: 'user',
          component: () => import('../views/provider/providerDetail/user'),
          meta: {
            title: '服务商列表  /  用户信息'
          }
        },
        {
          path: 'team',
          component: () => import('../views/provider/providerDetail/team'),
          meta: {
            title: '服务商列表  /  团队信息'
          }
        },
        {
          path: 'account',
          component: () => import('../views/provider/providerDetail/account'),
          meta: {
            title: '服务商列表 / 账户信息'
          }
        },
        {
          path: 'profit',
          component: () => import('../views/provider/providerDetail/profit'),
          meta: {
            title: '服务商列表 / 收益信息'
          }
        },
        {
          path: 'fee',
          component: () => import('../views/provider/providerDetail/fee'),
          meta: {
            title: '服务商列表 / 加盟费信息'
          }
        },
        {
          path: 'bond',
          component: () => import('../views/provider/providerDetail/bond'),
          meta: {
            title: '服务商列表 / 保证金信息'
          }
        },
        {
          path: 'settlement',
          component: () => import('../views/provider/providerDetail/settlement'),
          meta: {
            title: '服务商列表 / 结算信息'
          }
        },
        // {
        //   path: 'operation',
        //   component: () => import('../views/provider/providerDetail/operation'),
        //   meta: {
        //     title: '服务商列表 / 操作信息'
        //   }
        // },
        {
          path: 'message',
          component: () => import('../views/provider/providerDetail/message'),
          meta: {
            title: '服务商列表 / 消息信息'
          }
        }
      ]
    },
    {
      path: 'provider/cashWithdrawal',
      component: () => import('../views/provider/CashWithdrawal.vue'),
      meta: {
        title: '提现管理'
      }
    },
    {
      path: 'provider/cashWithdrawal/detail',
      component: () => import('../views/provider/CashWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '余额提现详情'
      }
    },
    // {
    //   path: '/provider/depositWithdrawal',
    //   component: () => import('../views/provider/DepositWithdrawal.vue'),
    //   meta: {
    //     title: '保证金提现'
    //   }
    // }
    {
      path: 'provider/depositWithdrawal/detail',
      component: () => import('../views/provider/DepositWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '保证金提现详情'
      }
    },
    {
      path: 'provider/rechargeRecord',
      component: () => import('../views/provider/rechargeRecord.vue'),
      meta: {
        title: '服务商充值记录'
      }
    },
    {
      path: 'provider/InvitemerchantsDetail',
      component: () => import('../views/provider/InvitemerchantsDetail'),
      meta: {
        title: '邀请商户草稿详情',
        isHidden: 'hide'
      }
    },
    {
      path: 'provider/InvitemerchantsEdit',
      component: () => import('../views/provider/InvitemerchantsEdit'),
      meta: {
        title: '邀请商户草稿编辑',
        isHidden: 'hide'
      }
    },
    // {
    //   path: 'provider/test',
    //   component: () => import('../views/provider/test'),
    //   meta: {
    //     title: '测试地图',
    //     isHidden: 'hide'
    //   }
    // },
    // {
    //   path: 'provider/draftsList',
    //   component: () => import('../views/provider/draftsList.vue'),
    //   meta: {
    //     title: '服务商草稿箱'
    //   }
    // },
    {
      path: 'provider/draftsList/detail',
      component: () => import('../views/provider/draftsListDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '服务商草稿箱详情页'
      }
    },
    // {
    //   path: 'provider/draftsList/detailEdit',
    //   component: () => import('../views/provider/draftsListDetailEdit.vue'),
    //   meta: {
    //     isHidden: 'hide',
    //     title: '服务商草稿箱详情页编辑'
    //   }
    // },
    {
      path: 'provider/inviteMerchantList',
      component: () => import('../views/provider/InviteMerchantList.vue'),
      meta: {
        title: '邀请商户列表'
      }
    },
    {
      path: 'provider/inviteMerchantAuditList',
      component: () => import('../views/provider/InviteMerchantAuditList.vue'),
      meta: {
        title: '邀请商户审核列表'
      }
    },
    {
      path: 'provider/InviteMerchantAuditDetail',
      component: () => import('../views/provider/InviteMerchantAuditDetail.vue'),
      meta: {
        title: '邀请商户审核详情',
        isHidden: 'hide'
      }
    },
    {
      path: 'provider/inviteMerchantShelvesList',
      component: () => import('../views/provider/InviteMerchantShelvesList.vue'),
      meta: {
        title: '邀请商户上架列表'
      }
    },
    {
      path: 'provider/inviteMerchantShelvesDetail',
      component: () => import('../views/provider/inviteMerchantShelvesDetail.vue'),
      meta: {
        title: '邀请商户上架详情',
        isHidden: 'hide'
      }
    },
    // 代理商管理
    {
      path: 'agent/list',
      component: () => import('../views/agent/List.vue'),
      meta: {
        title: '代理商列表'
      }
    }, {
      path: 'agent/cashWithdrawal',
      component: () => import('../views/agent/CashWithdrawal.vue'),
      meta: {
        title: '余额提现'
      }
    }, {
      path: 'agent/cashWithdrawal/detail',
      component: () => import('../views/agent/CashWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '余额提现详情'
      }
    },
    // 省级分公司管理
    {
      path: 'province/list',
      component: () => import('../views/province/List.vue'),
      meta: {
        title: '省级分公司列表'
      }
    }, {
      path: 'province/cashWithdrawal',
      component: () => import('../views/province/CashWithdrawal.vue'),
      meta: {
        title: '余额提现'
      }
    }, {
      path: 'province/cashWithdrawal/detail',
      component: () => import('../views/province/CashWithdrawalDetail.vue'),
      meta: {
        isHidden: 'hide',
        title: '余额提现详情'
      }
    },
    // 大区分公司管理
    {
      path: 'region/list',
      component: () => import('../views/region/List.vue'),
      meta: {
        title: '大区分公司列表'
      }
    },
    {
      path: 'region/cashWithdrawal',
      component: () => import('../views/region/CashWithdrawal.vue'),
      meta: {
        title: '余额提现'
      }
    },
    {
      path: 'region/CashDetail',
      component: () => import('../views/region/CashDetail.vue'),
      meta: {
        title: '余额提现详情',
        isHidden: 'hide'
      }
    },
    // 财务中心
    {
      path: 'financial/balanceManagement',
      component: () => import('../views/financial/BalanceManagement.vue'),
      meta: {
        title: '余额管理'
      }
    },
    {
      path: 'financial/capitalNumber',
      component: () => import('../views/financial/CapitalNumber.vue'),
      meta: {
        title: '资金流水'
      }
    },
    // 数据中心（暂无子菜单）
    // 平台管理
    {
      path: 'platformManagement/SensitiveWordsList',
      component: () => import('../views/platformManagement/SensitiveWordsList.vue'),
      meta: {
        title: '敏感词列表'
      }
    },
    {
      path: 'platformManagement/logs',
      component: () => import('../views/platformManagement/Logs.vue'),
      meta: {
        title: '访问日志'
      }
    },
    // 系统设置（暂无子菜单）
    {
      path: 'settings/userCenter',
      component: () => import('../views/settings/UserCenter.vue'),
      meta: {
        title: '个人中心'
      }
    }
  ]
}

export default router
